package poi;

import org.apache.poi.xwpf.usermodel.IBodyElement;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFTable;

/**
 * @author likai
 */

public enum WordTitleEnum {

    /**
     * 服务保障
     */
    ServiceProtection("服务保障", XWPFParagraph.class),
    /**
     * 行程安排
     */
    Itinerary("行程安排", XWPFParagraph.class),
    /**
     * 住宿安排
     */
    Accommodation("住宿安排", XWPFTable.class),
    ;

    private final String title;
    private final Class<? extends IBodyElement> type;

    WordTitleEnum(String title, Class<? extends IBodyElement> type) {
        this.title = title;
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public Class<? extends IBodyElement> getType() {
        return type;
    }

}
